from django import template
from datetime import datetime

register = template.Library()

@register.simple_tag
def now():
    return datetime.now().strftime('%Y-%m-%d %H:%M:%S %f')
